package com.itheima.service;

import com.github.pagehelper.PageInfo;
import com.itheima.pojo.Article;

import java.util.List;

public interface ArticleService {
    void addArticle(Article article);

    void updateArticle(Article article);

    Article getArticleById(int id);

    void deleteArticle(int id);

    PageInfo<Article> findPage(int pageNum, int pageSize, Integer categoryId, String state);
}
